package com.yiren.dbaa.currency.model;

import android.widget.EditText;

import com.yiren.backstage.currency.constant.SignalGConstant;

/**
 * Describe Edittext编辑框改变事件值的保存实体类
 *
 * @author WRX
 * @date 2022/11/7
 */
public class EdittextCommonModel {

    /*** 控件 */
    private EditText et;
    /*** 初始值 */
    private String initValue;
    /*** 保存的key */
    private String key;
    /*** 参数类型 */
    private int type;

    public EdittextCommonModel(EditText et, String key) {
        this.et = et;
        this.initValue = SignalGConstant.examConfigMap.get(key).toString();
        this.key = key;
    }

    public EdittextCommonModel(EditText et, String initValue, String key, int type) {
        this.et = et;
        this.initValue = initValue;
        this.key = key;
        this.type = type;
    }

    public EditText getEt() {
        return et;
    }

    public void setEt(EditText et) {
        this.et = et;
    }

    public String getInitValue() {
        return initValue;
    }

    public void setInitValue(String initValue) {
        this.initValue = initValue;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
